<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

		 <!-- overtime view -->        
      	 <record id="hr_overtime_view_form" model="ir.ui.view">
            <field name="name">hr.overtime.view.form</field>
            <field name="model">hr.overtime</field>
            <field name="arch" type="xml">
      			<form string="Overtime Request">    			
      			<header>
      			<!--	
      				<button string="Confirm" name="confirm" states="draft" type="workflow" class="oe_highlight"/>
      			-->	
      				
      				<field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate" statusbar_colors='{"confirm":"blue","validate1":"blue","refuse":"red"}'/>		
      			</header>
				
				<sheet>
                    <group>
                  		<field name="name"/>
                  	</group>
                    <notebook>
                        <page string="General">
                        	<group>
                        		<group>
                        			<field name="overtime_type_id"/>
                        			<field name="employee_id"/>
                        			<field name="breaktime"/>
                        			<field name="date_from"/>
                        			<field name="date_to"/>
                        			<field name="number_of_hours_temp"/>
                        			<field name="total_ot_hours"/>
                        			<field name="manager_id1"/>
	                        	</group>
	                        	<group>
	                        		<field name="overtime_type"/>
	                        		<field name="dept_id"/>
	                        		<field name="actual_ot_hours"/>
	                        		<field name="user_id"/>
	                        		<field name="manager_id2"/>
	                        	</group>
                        	</group>
                        </page>
                	</notebook>
                </sheet>
      	 		</form>
			</field>
		</record>
		
		<record id="hr_overtime_tree" model="ir.ui.view">
            <field name="name">hr.overtime.tree</field>
            <field name="model">hr.overtime</field>
            <field name="arch" type="xml">
                <tree string="Overtime Request">
                    <field name="employee_id"/>
					<field name="dept_id"/>
					<field name="name"/>
					<field name="overtime_type_id"/>
					<field name="number_of_hours_temp"/>
					<field name="date_from"/>
					<field name="date_to"/>
					<field name="state"/>
                </tree>
            </field>
        </record>
		
		<record id="hr_overtime_search" model="ir.ui.view">
            <field name="name">hr.overtime.search</field>
            <field name="model">hr.overtime</field>
            <field name="arch" type="xml">
                <search string="Search by">
                    <field name="employee_id"/>
                    <field name="dept_id"/>
                </search>
            </field>
        </record>
		
		<record id="hr_overtime_action" model="ir.actions.act_window">
            <field name="name">Overtime Request</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.overtime</field>
            <field name="view_mode">tree,form</field>
           <field name="search_view_id" ref="hr_overtime_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new overtime entries.
              </p>
            </field>
        </record>

		<menuitem action="hr_overtime_action" id="menu_overtime_request"
            parent="menu_hr_overtime_employee"
            sequence="1"/>
		
    </data>
</openerp>
